package com.jianganming.strategy.promotion;

//策略设计模式
public class Test {

    public static void main(String[] args) {
        IPromotionStrategy promotionStrategy = PromotionStrategyFactory.getPromotionStrategy(StrategyEnum.Groupbuy);
        PromotionActivity activity = new PromotionActivity(promotionStrategy);
        activity.execute();
    }
}
